package com.xiaoq.distribution.service.impl;

import com.xiaoq.distribution.entity.TicketSettleEntity;
import com.xiaoq.distribution.repository.ITicketSettleRepository;
import com.xiaoq.distribution.service.ITicketSettleService;
import com.xiaoq.vo.PagingVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by chenjh on 2018/5/24.
 */
@Service
public class TicketSettleServiceImpl implements ITicketSettleService {

    @Autowired
    private ITicketSettleRepository ticketSettleRepository;

    @Override
    public boolean save(TicketSettleEntity ticketSettleEntity) {
        return ticketSettleRepository.save(ticketSettleEntity);
    }

    @Override
    public List<TicketSettleEntity> getTicketSettleList(String settleHistoryId, PagingVo pagingVo) {
        return ticketSettleRepository.getTicketSettleList(settleHistoryId, pagingVo);
    }
}
